﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateRoute.aspx.cs" Inherits="GoogleMapMockUp.CreateRoute" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
    //<![CDATA[
        function CalculateRoute() {
            var strFeedID = feedID.toString();
            var feedContainer = document.getElementById("feed" + strFeedID);
            var feedTitleLink = document.getElementById("titleLink" + strFeedID);
            var feedTitleTxt = document.getElementById("titleTxt" + strFeedID);
            var loadingPanel = document.getElementById("lp" + strFeedID);
            feedContainer.className += " Active";
            feedTitleLink.style.display = "none";
            feedTitleTxt.style.display = "";
            loadingPanel.style.display = "";
            Callback1.PerformCallback(feedID);
        }
        function OnCallbackComplete(s, e) {
            var strFeedID = e.parameter.toString();
            var loadingPanel = document.getElementById("lp" + strFeedID);
            var detailsContainer = document.getElementById("details" + strFeedID);
            loadingPanel.style.display = "none";
            detailsContainer.style.display = "";
            detailsContainer.innerHTML = e.result;
        }

    // ]]> 
    </script>




</head>
<body>
    <form id="form1" runat="server">
    <div>
        <dx:ASPxCallback ID="ASPxCallback1" runat="server" ClientInstanceName="Callback1" OnCallback="ASPxCallback1_Callback">
            <ClientSideEvents CallbackComplete="OnCallbackComplete" />
        </dx:ASPxCallback>

        <dx:ASPxButton ID="ASPxButton1" runat="server" Text="ASPxButton" AutoPostBack="False">
            <ClientSideEvents Click="function(s, e) { CalculateRoute(); }" />
        </dx:ASPxButton>
    </div>
    </form>
</body>
</html>
